const path = require('path');
const withCss = require('@zeit/next-css');
const withSass = require('@zeit/next-sass');
const APPconfig = require('./config');

if (typeof require != 'undefined') {
  require.extensions['.css'] = (file) => {};
}

// export default () => withSass(withCss())
// module.exports = withSass(withCss({}))
module.exports = {
  entry: './src/index',
  assetPrefixs: '//s2.panli.com/shoppingcart/',
  basename: '/shoppingcart',
  withSass: withCss({
    sassOptions: {
      includePaths: [path.join(__dirname, 'styles')],
    },
  }),
};
